/* $Id: test_cpp_memory_1024mb.cpp 12 2010-09-24 13:15:17Z olexiy.palinkash@gmail.com $ */

#include <stdio.h>
#include <vector>

using namespace std;

int main()
{
	vector <int> v;
	v.assign(1024 * 1024 * 1024 / sizeof(int), 0);
	for (unsigned i = 0, sz = v.size(); i < sz; i += 5000)
		v[i] = 1;

	printf("Test finished (1024 MB Memory Allocation)\n");
	return 0;
}

